package config.beans;

import org.springframework.beans.factory.annotation.Value;

public class HelloWorld {
    public HelloWorld() {
        System.out.println("构造方法执行....");
    }

    private String name;
    @Value("${jdbc.url}")
    private String url;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "HelloWorld{" +
                "name='" + name + '\'' +
                '}' + url;
    }
}